package org.cangkuguanli.boot.controller;

import org.cangkuguanli.boot.util.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/first/")
public class FirstController
{
    @RequestMapping("/a")
    public String a() {
        return "This is a FirstController`a method";}
    @RequestMapping("/b")
    public JsonResult b() {
        return new JsonResult<>(true, 200, "This is a FirstController`a method", "");
    }
}